package com.sxbang.friday.service.impl;

import com.sxbang.friday.base.result.Results;
import com.sxbang.friday.model.SysRole;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.sxbang.friday.dao.SysRoleMapper;
import com.sxbang.friday.service.SysRoleService;

/**
 * @author :ali
 * @date   :2020/1/27 16:19
 * @description：${description}
 * @modified By:
 * @version: 1.0.0
 */

@Service
public class SysRoleServiceImpl implements SysRoleService{

    @Resource
    private SysRoleMapper sysRoleMapper;

    @Override
    public Results<SysRole> getAllRoles() {
        return Results.success(50,sysRoleMapper.getAllRoles());
    }
}
